package
{
	import com.flashdynamix.utils.SWFProfiler;
	
	import controller.EventController;
	import controller.events.ApplicationEvent;
	
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	
	import model.Service;
	
	import mx.core.Application;

	public class MainController extends Application
	{
		private var _eventController:EventController;
		private var _services:Service;
		
		public function MainController()
		{
			super();
		}
		
		protected function init():void
		{
			// DEBUGGER
			SWFProfiler.init(systemManager.stage,this);
			
			systemManager.stage.scaleMode = StageScaleMode.NO_SCALE;
			systemManager.stage.align = StageAlign.TOP_LEFT;
			_eventController = new EventController();
			_services = new Service();
			
			ModelLocator.Instance.setPageParser(PageParser);
			
				
			new ApplicationEvent(ApplicationEvent.GET_DATA).dispatch();
		}
		
	}
}